package chongchongchong.demo.Controller;

import chongchongchong.demo.service.ParameterService;
import chongchongchong.demo.service.PlantService;
import chongchongchong.demo.view_object.DataVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;



@RestController
public class ParameterController {
    @Autowired
    private ParameterService parameterService;
    @RequestMapping("/list")
    public DataVO list(){

        return parameterService.findData();
    }

    @Autowired
    private PlantService plantService;
    @RequestMapping("/list2")
    public DataVO list2() {

        return plantService.findData();
    }
}
